package Code.MethodWthReturnValue;

public class MethodDemo1 {
    public static void main(String[] args) {

        int sum = getSum(10,20,30);
        System.out.println(sum);
        System.out.println(getSum(1,2,3));

    }

    public static int getSum(int num1,int num2,int num3){

        int result = num1+num2+num3;
        return result;//返回给方法的调用处
    }
}
